package com.mzj;

import java.util.UUID;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.mzj.thread.EmqTestThead;

public class EmqMain {

	private static final Logger LOG = LoggerFactory.getLogger(EmqMain.class);
	
	public static void main(String[] args) throws Exception {
		Integer size = Integer.valueOf(args[0]);
		
		
		for(int i=0;i<size;i++) {
			String id = UUID.randomUUID().toString()+"_"+i;
			new EmqTestThead(id).start();
			LOG.warn("EmqTestThead running {}",id);
			Thread.sleep(10);
		}
	}
}
